<?php

class Messages {

	public static function get($msg,$replaces=null) {
		require_once 'app/conf/messages.php';
		$out = $messages[ $msg ];
		if( is_array($replaces) )
			foreach ($replaces as $key => $value)
				$out = str_replace($key, $value, $out);
		return $out;
	}
	
}

?>